/**
 * @Author：ming
 * @Date：2023/10/2 8:33 PM
 * @Filename：Hj4
 */

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * @author ming
 */
public class Hj4 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
        while ((str=br.readLine())!=null){

            int len =str.length();
            int yu = len%8;
            int bu;
            StringBuilder sb = new StringBuilder(str);
            if(yu!=0){
                bu =8-yu;
                for (int i = 0; i < bu; i++) {
                    sb.append('0');
                }
            }

            while (sb.length()!=0){
                System.out.println(sb.substring(0,8));
                sb.delete(0,8);
            }
        }
    }
}
